package com.telecom.cms.service;

import java.util.List;
import com.telecom.cms.dao.SysCodeDAO;
import com.telecom.cms.dto.CampContRsltLvl;
import com.telecom.cms.dto.SysCode;

public class CampContRsltLvlMgr {
   
	public int  save(CampContRsltLvl syslvl){
		return (new SysCodeDAO()).insert(syslvl);
	}
	
	public void  delete(CampContRsltLvl syslvl){
		(new SysCodeDAO()).delete(syslvl);
	}
	
	public List findall(){
		List result=(new SysCodeDAO()).findAllByType("Camp_Cont_Rslt_Lvl");
		return result;
	}
	
	public List findalllvl2(){
		List result=(new SysCodeDAO()).findAllByTypeLvl("Camp_Cont_Rslt_Lvl","2");
		return result;
	}
	public SysCode findById(String Code_Id){
		SysCode result=(new SysCodeDAO()).findById("Camp_Cont_Rslt_Lvl",Code_Id);
		return result;
	}
	
	
}
